package com.callback;

public class LambdaDemo {
    public static void main(String[] args) {
        //方式1
        Cacl cacl = new Cacl() {
            @Override
            public double add(double i, double j) {
                return 0;
            }
        };

        //方式二
        Cacl cacl1 = (double a,double b) ->{
          return a+b;
        };
        Cacl cacl2 = (double i,double j) ->i+j;

        //方式三
        Cacl cacl3 = (x,y) ->x+y;




    }
}

interface Cacl{
    public double add(double i,double j);
}
